package cn.com.xinjinfu.pdoulcProduct.entity;

import java.io.Serializable;

/**
 * CurrUser个人信息类
 * Created by android-adt on 2016/1/15.
 */
public class CurrUser implements Serializable {

    private String id;
    private String mobile;
    private String name;
    private String realityName;
    private String idNumber;
    private String sign;
    private boolean isSetPayPwd;

    public boolean isSetPayPwd() {
        return isSetPayPwd;
    }

    public void setIsSetPayPwd(boolean isSetPayPwd) {
        this.isSetPayPwd = isSetPayPwd;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getRealityName() {
        return realityName;
    }

    public void setRealityName(String realityName) {
        this.realityName = realityName;
    }

    public String getIdNumber() {
        return idNumber;
    }

    public void setIdNumber(String idNumber) {
        this.idNumber = idNumber;
    }

    public String getSign() {
        return sign;
    }

    public void setSign(String sign) {
        this.sign = sign;
    }

    @Override
    public String toString() {
        return "CurrUser{" +
                "id='" + id + '\'' +
                ", mobile='" + mobile + '\'' +
                ", name='" + name + '\'' +
                ", realityName='" + realityName + '\'' +
                ", idNumber='" + idNumber + '\'' +
                ", sign='" + sign + '\'' +
                '}';
    }
    /**
     * 判断是否已经登录
     * @return true为已登录(包含用户ID等信息),false为未登录
     */
    public boolean isLogged(){
        return this.id != null && id != ""
//                && BaseApplication.getInstance().getLockPatternUtils().savedPatternExists()
                ;//设置了手势密码
    }
}
